﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="BlogEngineMVC.Views.Home.Index" %>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<% foreach (BlogEngineMVC.Models.BlogPost post in (IEnumerable)ViewData.Model)
   { %>
    <h2><%= post.Title%></h2>
    <span class="createDate">Created At <%= post.CreateDate.ToString() %></span>
    <p>
        <%= post.Body %>
    </p>
<%} %>
</asp:Content>
